package com.google.code.syncgear.util;

import java.util.Date;

public final class DateTimeUtil {

	public static int getDateInterval(Date date1, Date date2) {
		Long date1Long = date1.getTime();
		Long date2Long = date2.getTime();
		return Math.abs(Math.round((date1Long - date2Long)));
	}

	public static Date getNow() {
		return new Date();
	}

}
